/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package score;

/**
 *
 * @author Daniel Gribel
 */
public class MinOccuranceScore extends Score {
    private int minValue;
    private int points;
    
    public MinOccuranceScore(int minValue, int points) {
        super();
        this.minValue = minValue;
        this.points = points;
    }
    
    @Override
    public void applyScore(int counter) {
        if(counter >= minValue)
            setFinalScore(points);
        else setFinalScore(0);
    }    
}
